﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class GiftOrderItemInfoConfig : EntityTypeConfiguration<GiftOrderItemInfo>
    {
        public GiftOrderItemInfoConfig()
        {
            ToTable("Himall_GiftOrderItem");
            Property(item => item.GiftName).HasColumnType("varchar").HasMaxLength(200);
            Property(item => item.ImagePath).HasColumnType("varchar").HasMaxLength(100);
            HasRequired(x => x.Himall_GiftsOrder).WithMany(x => x.Himall_GiftOrderItem).HasForeignKey(x => x.OrderId);
        }
    }
}
